package AlgorithmTest;

public class classHasStatic {
	private static int x = 100;

	public static void main(String args[]) {
		classHasStatic hs1 = new classHasStatic();
		hs1.x++;
		System.out.println("x1=" + x);
		classHasStatic hs2 = new classHasStatic();
		hs2.x++;
		System.out.println("x3=" + x);
		hs1 = new classHasStatic();
		hs1.x++;
		System.out.println("x4=" + x);
		classHasStatic.x--;
		System.out.println("x2=" + x);
	}
}
